# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test07
# Description:  例23.7
# Author:       ASUS
# Date:         2019/4/4
#-------------------------------------------------------------------------------



from numpy import *
a = arange(8).reshape(2,4)
#水平分割数组
b = hsplit(a,4)
print(b)                     #以列表形式返回
print(b[0])
print(b[2])
print(b[0].shape)
print("--------------")
print(hsplit(a,2))


